﻿package plugin.chatflash.controller
{
    import com.core.*;
    import flash.geom.*;
    import manager.*;

    public class GmTool extends Object
    {

        public function GmTool()
        {
            return;
        }// end function

        public static function sendGmCMD(param1:String) : void
        {
            switch(param1)
            {
                case "openGMTool":
                {
                    PluginManager.instance.openPlugin("gm", new Point(0, 0));
                    break;
                }
                case "closeGMTool":
                {
                    PluginManager.instance.closePlugin("gm");
                    break;
                }
                case "gmClear":
                {
                    ModelProxy.change("gm", "addmsg", "清理");
                    break;
                }
                default:
                {
                    ModelProxy.change("gm", "addmsg", param1);
                    break;
                    break;
                }
            }
            return;
        }// end function

    }
}
